﻿using LD.Model;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LD.Quartz
{
    public class VacuumJob: IJob
    {
        Task IJob.Execute(IJobExecutionContext context)
        {
            return VacuumRate();
        }

        private  Task VacuumRate()
        {
              return Task.Run(() =>
              {
                  TB_WIP result = DBHelper.Instance.Sql.Queryable<TB_WIP>().First();
                  ExcelHelper.Save(result, 3);
              });
        }
    }
}
